<!--START JS-->
<i id="scriptTag">/static/js/console/brancheList.js</i>
<link rel="stylesheet" type="text/css" href="/static/css/plugins/chosen/chosen.css" >
<!--END JS-->

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2><?php echo $page_title; ?></h2>
        <p>您可在此进行<?php echo $page_title; ?></p>
    </div>
    <div class="col-lg-2"></div>
</div>

<!--START brancheList-->
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5><?php echo $page_title; ?></h5>
                </div>
                <div class="ibox-content">

                    <div class="form-group">
                        <label>当前门店：</label> 
                        <input type="text" value="<?php echo $shop_detail['shop_name'] ?>" class="form-control" disabled readonly>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <?php foreach ($detail as $key => $item) { ?>
                        <div class="brancheWrapper">
                            <div class="form-group">
                                <label>分店名称：</label>
                                <input type="text" placeholder="请输入分店名称" class="form-control" value="<?php echo $item['branche_name'];?>" name="branche_name" disabled readonly>
                            </div>
                            <div class="form-group">
                                <label>电话：</label> 
                                <input type="text" placeholder="请输入门店联系电话" class="form-control" value="<?php echo $item['branche_phone']; ?>" name="branche_phone" minlength="8" maxlength="15" disabled readonly>
                            </div>
                            <div class="form-group">
                                <label>省市：</label>
                                <div class="row">
                                    <div class="col-lg-5">
                                        <input type="text" class="form-control" value="<?php echo $item['branche_province']; ?>" name="branche_province" disabled readonly>
                                    </div>
                                    <div class="col-lg-5">
                                        <input type="text" class="form-control" value="<?php echo $item['branche_city']; ?>" name="branche_city" disabled readonly>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label>详细地址：</label> 
                                <input type="text" placeholder="请输入门店地址" class="form-control" value="<?php echo $item['branche_address']; ?>" name="branche_address" disabled readonly>
                            </div>
                            <div class="form-group">
                                <a href="/console/brancheEdit/<?php echo $shop_detail['id']; ?>/<?php echo $item['id']; ?>" class="btn btn-bitbucket btn-primary" title="修改">
                                    <i class="fa fa-edit"></i>
                                </a>
                                <a href="/console/brancheCreate" class="btn btn-bitbucket btn-danger" title="新增">
                                    <i class="fa fa fa-plus"></i>
                                </a>
                                <!--                                <a href="#" class="del-btn btn btn-bitbucket btn-danger" title="删除">
                                                                    <i class="fa fa-times"></i>
                                                                </a>-->
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    </div>
</div>
<!--END brancheList-->